home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
009
/
qb3bug.arc
/
PROBLEM2.BAS
< prev
next >
Wrap
BASIC Source File
|
1987-07-11
|
2KB
|
38 lines
'+----------------------------------------------------------------------------+
'| This will run fine IN the environment, or if compiled to a BRUN file, |
'| it will PROBABLY not run if compiled to a BCOM file from INSIDE the |
'| QB environment, only if compiled from DOS via QB problem2 /o; |
'| |
'| Problem2 - a window routine. Crashes most every time. |
'| Parameters: |
'| lcol- Left column |
'| top - Top row |
'| rcol - Right column |
'| bttm - bottom row |
'| label$ - Label to be placed on box |
'| frame - style of frame |
'| type - 0=normal, 1=growing, 2=Shaded, 3=shaded/growing |
'| fg - foreground color |
'| bg - background color |
'| page - video page to use |
'+----------------------------------------------------------------------------+
CLEAR
DEFINT a-z
lcol=5 : top=3 : rcol=78 : bttm=15 : label$=" TESTING! " : frame=3
fg=14 : bg=4
color 0,3,3
cls
FOR type=1 TO 3
CALL makewindow(lcol%,top%,rcol%,bttm%,label$,frame%,type%,fg,bg,0)
LOCATE 23,30
PRINT "Press any key to continue"
k$=INKEY$ : WHILE k$="" : k$=INKEY$ : WEND
CLS : BEEP
NEXT type
COLOR 3,0 : CLS